#include "CAbstractCharacter.h"


void CAbstractCharacter::setPosition(SCharPosition position)
{
	m_position = position;
}

void CAbstractCharacter::setPosition(uint x, uint y)
{
	m_position.x = x;
	m_position.y = y;
}

CAbstractCharacter::SCharPosition CAbstractCharacter::getPosition() const
{
	return m_position;
}

void CAbstractCharacter::setLives(uint lives)
{
	m_lives = lives;
}

void CAbstractCharacter::killed()
{
	if(m_lives)
		m_lives--;
}

void CAbstractCharacter::setMovementSpeed(double movementSpeed)
{
	m_movementSpeed = movementSpeed;
}


